import sys
import os
if sys.platform == "win32" :
   sys.path.append(os.getenv('windir')+"\\system32")
else :
   sys.path.append("/usr/lib")
import starpy

Service=starpy._InitSimple("test","123",0,3040,"SRPSHtmlEnvEngine")
a = Service.SHtmlEnvSiteClass._New()
a._Active()

def a_OnDefault(self,CommInterface,HttpRequest,RetHeader,RetBody) :
    FileName,Para = self.ParseRequestFile(HttpRequest[7])
    print(FileName,Para)
    RetBody._WriteFromMemoryFile(self._Service,0,FileName)
    return 0
a.OnDefault = a_OnDefault